/*
 * defines.h
 *
 *  Created on: May 4, 2011
 *      Author: onteria_
 */

#ifndef DEFINES_H_
#define DEFINES_H_

#ifdef	__cplusplus
extern "C" {
#endif

/* General limit */
#define MIKO_MSG_LENGTH 512

/* Data structure limits */
#define MIKO_FIRST_NAME_MAX 128
#define MIKO_LAST_NAME_MAX 128
#define MIKO_SHRINE_NAME_MAX 256

enum miko_error {
	/* General return errors */
	MIKO_SUCCESS = 0,
	MIKO_ERROR = -1,

	/* Specific return errors */
	MIKO_TIMEOUT = -2,
	MIKO_POLLERROR = -3,
	MIKO_SEND_FAILED = -4,
	MIKO_MSG_TOO_LONG = -5,
	MIKO_DATA_CHECK_FAILURE = -6,
	MIKO_INVALID_UNICODE = -7
};

const char * miko_get_error_string(int error_code);

/* Result codes */
#define MIKO_SEND_OKAY 200

#ifdef	__cplusplus
}
#endif

#endif /* DEFINES_H_ */
